import * as vscode from 'vscode';
import { USER_COMMANDS } from '../../command_names';


export class SnippetItem extends vscode.TreeItem {
  constructor(
    id: number,
    name: string
  ) {
    super(vscode.Uri.file(name));
    this.command = {
      title: 'Open Snippet',
      command: USER_COMMANDS.OPEN_SNIPPET,
      arguments: [id],
    };
  }
}
